const router = require('koa-router')()
const carsController = require('./../controller/cars')

router.prefix('/car')

router.get('/getCars',carsController.getCar);

router.post('/addCar',carsController.addCar);

router.post('/editCar',carsController.editCar);

router.post("/deleteCar",carsController.deleteCar);

router.post("/getPrice",carsController.getPrice);

router.get('/getUsedCars',carsController.getUsedCar);

module.exports = router;

